jQuery(document).ready(function($) {
   
      //replace this URL with whatever URL you want shared.
      var url = 'http://onestoptravel-sg.tk';
      //uncomment the line below and comment out the above to set the URL to the current URL
      //var url = window.location;
 
      //replace this with your facebook app ID
      var facebook_app_id = '150575751729907';
     
      var $facebook_target = $("#facebook_button")
		.append('<iframe src="http://www.facebook.com/plugins/like.php?app_id='+facebook_app_id+'&amp;href='+encodeURIComponent(url)+'&amp;send=false&amp;layout=standard&amp;width=90&amp;show_faces=true&amp;action=like&amp;colorscheme=light&amp;font&amp;height=21" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:100%; height:80px;" allowTransparency="true"></iframe>');
     
      //add loading class
      $facebook_target.addClass("socprog_loading");

      var tweet = 'OneStopTravelSG - planning your trip with ease!';
      var twitter = 'OneStopTravelSG';
 
      //add tweet HTML
      var $twitter_target = $("#twitter_button")
		.hide()
        .append('<a href="http://twitter.com/share" class="twitter-share-button" data-url="'+url+'" data-text="'+tweet+'" data-count="horizontal" data-via="'+twitter+'">Tweet</a>');
		
      $twitter_target.addClass("socprog_loading");
   
      //load twitter
      $.getScript('http://platform.twitter.com/widgets.js', function() {
        $twitter_target.show(); //show it
      });
    });